<?php
/**
 * main.php
 * @author ranuandra
 *
 * 9 Agu 2011 08:42:57
 *
 * 
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>NASMOCO</title>
<link href="<?php echo URL::base()?>assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo URL::base()?>assets/css/template.css" rel="stylesheet" type="text/css" />


<link rel="stylesheet" type="text/css" href="<?php echo URL::base()?>assets/css/superfish.css" media="screen">
<link rel="stylesheet" type="text/css" href="<?php echo URL::base()?>assets/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/hoverIntent.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/superfish.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/view.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('ul.sf-menu').superfish();
		$('.clsform').live('mouseover', function(){ $(this).fancybox()});
		$('.clsform').live('click', function(){
			$(this).fancybox({
				'opacity'		: true,
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'none'
			})
		});


		$('.formdata').live('submit',function(){
			var targetdata = $(this).attr('targetdata');
        	$(this).ajaxSubmit({
    			success: function(data){
        			if(data!="sukses")
        			{
    					$(targetdata).html(data).fadeIn();
        			}
        			else
        			{
            			$('.tbldata').load('<?php echo URL::base()?>menu');
        				$.fancybox.close();
        			}
        	     }
        	});
			return false;
		});
	});


		</script>
</head>

<body>
<div class="container container_12">
<div class="grid_12 header">Header</div>
<div class="grid_12 menu">
        <?php 
         if(isset($menu))
         {
             echo $menu;	
          }
       ?>
</div>
<div class="grid_12">
	<div class="middle">
    	<div class="inside">
    		<div class="contain">
	        <?php 
	         if(isset($container))
	         {
	             echo $container;	
	          }
	       	 ?>
       		</div>
    	</div>
    </div>
</div>
<div class="grid_12 footer">
    	<div class="inside">
			footer
    	</div>
</div>
</div>
</body>
</html>